package com.ljq.army;

public class Hero extends Thread {
	
	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName()+"开始了战斗");
		for(int i=0; i<10; i++) {
			System.out.println(Thread.currentThread().getName()+"攻击魏军：" + i);
		}
		System.out.println(Thread.currentThread().getName()+"结束了战斗");
	}
}
